// src/api/user.js
import genericApi from "@/util/genericApi.js";

const SERVICE_NAME = "user-api"; // 微服务名称
const BASE_URL = "/users";

async function login(params) {
    return genericApi.post(SERVICE_NAME, `${BASE_URL}/pass/login`, params);
}

async function register(params) {
    return genericApi.post(SERVICE_NAME, `${BASE_URL}/save`, params);
}

export { login, register }
